package com.shudes.eval;

import java.util.*;

import com.shudes.game.*;

public class MonteCarloEquityCalculator extends EquityCalculator {
	
	
	public MonteCarloEquityCalculator(EquityInput input)  {
		super(input);
	}
	
	@Override
	public EquityResult calculate() {
		return null; 
	}
	
	protected Board createRandomBoard() {
		Deck d; 
		Collection<Card> trial;
		CardCollection discard;
		int numCards;
		
		numCards = (equityResult.getBoard()!=null) ? (5-this.equityResult.getBoard().size()) : 5; 
		
		d = this.makeDeck();
		d.shuffle(); 
		
		discard = d.deal(numCards); 
		trial = new HashSet<Card>(discard.getCards()); 
		if(equityResult.getBoard()!=null && equityResult.getBoard().size()>0) 
			trial.addAll(equityResult.getBoard().getCards()); 

		return new Board(trial); 		
	}
	

}
